import { ref } from 'vue'
import { defineStore } from 'pinia'
export const usePrintStore = defineStore('print', () => {
    const printData = ref()
    const setPrintData = (data) => {
        printData.value = data
    }
    const resetPrintData = () => {
        printData.value = null
    }
    
    return {
        printData,
        setPrintData,
        resetPrintData
    }   
}, {
    persist: true
})